-- GENERATED SPELL FOR [Twilight Frostblade] --


function spell0_26223(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_26223', 564, 1)
end

function spell1_26223(pUnit, Event) --@Piercing Howl,Self--
pUnit:FullCastSpellOnTarget(23600,pUnit)
pUnit:RegisterEvent('Sorts_26223', 6283, 1)
end

function Sorts_26223(pUnit, Event)
local choix_sorts_26223 = math.random(0, 1)
if choix_sorts_26223 == 0 then
pUnit:RegisterEvent('spell0_26223', 1, 1)
end
if choix_sorts_26223 == 1 then
pUnit:RegisterEvent('spell1_26223', 1, 1)
end
end

function mob26223_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26223', math.random(1500, 3000), 1)
end

function mob26223_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26223_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26223_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26223, 1, 'mob26223_Action')
RegisterUnitEvent(26223, 2, 'mob26223_Leave')
RegisterUnitEvent(26223, 3, 'mob26223_Kill')
RegisterUnitEvent(26223, 4, 'mob26223_Die')
